package com.springboot.study.tests.designpattern.adapter1;

import org.springframework.stereotype.Component;


/**
 * @Author: guodong
 * @Date: 2021/4/25 14:32
 * @Version: 1.0
 * @Description:
 */
@Component
public class DogAnimal implements AnimalAdapter<Dog, String>{

    @Override
    public String getAnimalName() {
        return "dog";
    }

    @Override
    public String convert(Dog dog) {
        return dog.getName();
    }


}
